package com.traffic.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.traffic.mapper.ExternalStaffFeeApplicationMapper;
import com.traffic.domain.ExternalStaffFeeApplication;
import com.traffic.service.IExternalStaffFeeApplicationService;

/**
 * 外聘人员费申请Service业务层处理
 * 
 * @author ywt
 * @date 2024-10-12
 */
@Service
public class ExternalStaffFeeApplicationServiceImpl implements IExternalStaffFeeApplicationService 
{
    @Autowired
    private ExternalStaffFeeApplicationMapper externalStaffFeeApplicationMapper;

    /**
     * 查询外聘人员费申请
     * 
     * @param id 外聘人员费申请主键
     * @return 外聘人员费申请
     */
    @Override
    public ExternalStaffFeeApplication selectExternalStaffFeeApplicationById(Long id)
    {
        return externalStaffFeeApplicationMapper.selectExternalStaffFeeApplicationById(id);
    }

    /**
     * 查询外聘人员费申请列表
     * 
     * @param externalStaffFeeApplication 外聘人员费申请
     * @return 外聘人员费申请
     */
    @Override
    public List<ExternalStaffFeeApplication> selectExternalStaffFeeApplicationList(ExternalStaffFeeApplication externalStaffFeeApplication)
    {
        return externalStaffFeeApplicationMapper.selectExternalStaffFeeApplicationList(externalStaffFeeApplication);
    }

    /**
     * 新增外聘人员费申请
     * 
     * @param externalStaffFeeApplication 外聘人员费申请
     * @return 结果
     */
    @Override
    public int insertExternalStaffFeeApplication(ExternalStaffFeeApplication externalStaffFeeApplication)
    {
        externalStaffFeeApplication.setCreateTime(DateUtils.getNowDate());
        return externalStaffFeeApplicationMapper.insertExternalStaffFeeApplication(externalStaffFeeApplication);
    }

    /**
     * 修改外聘人员费申请
     * 
     * @param externalStaffFeeApplication 外聘人员费申请
     * @return 结果
     */
    @Override
    public int updateExternalStaffFeeApplication(ExternalStaffFeeApplication externalStaffFeeApplication)
    {
        return externalStaffFeeApplicationMapper.updateExternalStaffFeeApplication(externalStaffFeeApplication);
    }

    /**
     * 批量删除外聘人员费申请
     * 
     * @param ids 需要删除的外聘人员费申请主键
     * @return 结果
     */
    @Override
    public int deleteExternalStaffFeeApplicationByIds(Long[] ids)
    {
        return externalStaffFeeApplicationMapper.deleteExternalStaffFeeApplicationByIds(ids);
    }

    /**
     * 删除外聘人员费申请信息
     * 
     * @param id 外聘人员费申请主键
     * @return 结果
     */
    @Override
    public int deleteExternalStaffFeeApplicationById(Long id)
    {
        return externalStaffFeeApplicationMapper.deleteExternalStaffFeeApplicationById(id);
    }
}
